<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <link href="__STATIC__/css/login.css" rel="stylesheet" type="text/css">
        <script src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
        <title>{$tpshop_config.shop_info_store_title}</title>
    </head>
    <body>
        <div class="logintop-box">
            <div id="header">
                <div class="fl"><a href="#"><img src="__STATIC__/img/login/login.png" width="345" height="37" alt="logo"></a></div>
                <!--            <div class="fr"><a href="__ROOT__/Shop" target="_blank">公司商城</a></div>
                            <div class="fr"><a href="__ROOT__/Home" target="_blank">企业官网</a></div>
                            <div class="fr"><a href="#">新手帮助</a></div>-->
            </div>
        </div>
        <div class="login-bg">
            <div class="login-main">
                <div id="main">
                    <div class="Article-box"></div>
                    <div class="Article-box2"></div>
                    <div class="Article-box3"></div>
                    <div class="Article-box4"></div>
                    <div class="login-box">
                        <div class="login-box-bg"></div>
                        <span class="systemlogo">会员登陆</span>
                        <div class="login-tit">
                            <if condition="$tpshop_config.shop_info_kg eq 1">
                                <form action="__CONTROLLER__/index" method="post" style="margin:0px; padding:0px" id="loginform" onsubmit="return cheklogin();">
                                    <ul>
                                        <li><span class="login-user2"></span>
                                            <input name="account" type="text" id="username" class="login-user" placeholder="请输入账号">
                                        </li>
                                        <li><span class="login-pwd3"></span>
                                            <input name="pwd" type="password" class="login-pwd" placeholder="请输入密码" id="password">
                                        </li>
                                        <li><input name="code" type="text" id="verifycode" class="login-pwd2 fl" placeholder="请输入验证码">
                                            <div class="fr"><img src="{:U('Home/User/verify')}" onclick="this.src = '__CONTROLLER__/verify?id=' + Math.random();";/></div>
                                        </li>
                                        <li> 
                                            <input type="submit" name="Loginbtn" class="login-btn" value="立即登录" id="Loginbtn">
                                        </li>
                                        <!--  <li>没有账号 点击&nbsp;<a href="Application/regedit.php" >注册</a>&nbsp;&nbsp;｜&nbsp;&nbsp;忘记密码 点击&nbsp;<a href="">找回</a></li>-->
                                    </ul>
                                </form>
                                <else/>
                                <div style="font-size:25px;color:red;text-align:center;height:230px;line-height:230px;">{$tpshop_config.shop_info_kgcontent}</div>
                            </if>
                        </div>
                    </div>
                </div>
            </div>    
        </div>
        <div class="loginbm"> Copyright ©2006-2015,All Rights Reserved.站长统计</a></div>
</body>
</html>
<script>
    function cheklogin()
    {
        if ($('input[name="account"]').val() == "") {
            alert("用户名不能为空!");
            $('input[name="account"]').focus();
            return false;
        } else {
            if (!$('input[name="account"]').val().match(/^[a-zA-Z0-9]{1,}$/))
            {
                alert('用户名格式不正确');
                return false;
            }
        }
        if ($('input[name="pwd"]').val() == "") {
            alert("密码不能为空!");
            $('input[name="pwd"]').focus();
            return false;
        }
        if ($('input[name="code"]').val() == "") {
            alert("验证码不能为空!");
            $('input[name="code"]').focus();
            return false;
        }
    }
</script>